package kr.saeildamil.androidstudy_second.valueani;

import kr.saeildamil.androidstudy_second.R;
import android.animation.ObjectAnimator;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class ObjectAnimatorTest extends Activity {
	Button mBtn;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch24_valueanimatortest);
		mBtn = (Button)findViewById(R.id.ch24_valueanimatortest_btn);
	}
	
	public void mOnClick(View v){
		ObjectAnimator anim = ObjectAnimator.ofInt(mBtn, "width", 200, 400);
		anim.setDuration(2000);
		anim.start();
	}
}
